import scrapy


class YangguanggaokaoSpider(scrapy.Spider):
    name = "yangguanggaokao"
    async def start(self):
        cookies = {
            'aliyungf_tc': '7cb5c938e76ef3958fe5337e91bffa06c32dbd9e21b8e040d57906ebb5e4f263',
            'goaYXsyEWlxdO': '60fXqujhTZ3FtPDZYQEEGXMr1ajQhKXcCpfgoSFIb2RhPpNORLuVF00IFbOKXKDaWXpEJ3LuFp84tEIzoZfoPeNA',
            'CHSICC01': '!TTBncHRQZ/y6Y8InVPBkiJOoJxwY2oweUa5N8YGERJJSXQJwG6VxXGJpKfzi0vYW+fez0EfmMbYXYg==',
            '35067579362dd9cd78': 'ef12691a43d2f7a72b28673431c166e3',
            'CHSICC_CLIENTFLAGCHSI': '905233b5a742f1e8f5681ab828e68c6f',
            'Hm_lvt_19141110b831c2c573190bb7a3b0ef3f': '1762422431',
            'HMACCOUNT': '5CCD49CF5E631014',
            'XSRF-CCKTOKEN': 'cf1480a30821220c692eb3600bd7bc98',
            'CHSICC_CLIENTFLAGGAOKAO': '7485b4f67adcaa05ecb6f9348135796b',
            '_gid': 'GA1.3.2032091490.1762422457',
            '_abfpc': 'b4347b7a90780d168a0d5b7318e200ebd745039a_2.0',
            'cna': '67572287e8ff0b175ba9a37415aa9d09',
            'acw_tc': 'ac11000117624352297552521e0061f9114a5cbefa94ac86daf9144fd753f6',
            'JSESSIONID': '59652D5D44ABB694DE653B0C11D734D0',
            '_gat_gtag_UA_100524_6': '1',
            'Hm_lpvt_19141110b831c2c573190bb7a3b0ef3f': '1762435422',
            '_ga_5FHT145N0D': 'GS2.1.s1762435237$o2$g1$t1762435422$j52$l0$h0',
            '_ga': 'GA1.3.217458961.1762422457',
            'goaYXsyEWlxdP': '0XTUX2SeYi0vSHi1NqhkB684Y4la2oEDRsUPqOa9D50p1u.vR0BD7AZiUmphq1XjutOpZJ_P_.r_bmGqUuRZwAsfke7pZ1ZcgNN43NWpO5vmgbyHkiOscKMPfofcIB1zJyj91xk183jNPXPYMPe7higfIENlpuriV_aqHSqq_FiziwGT0rVLVVEBzfIFRDlc1YNNQyVfcHdDE7O2..SEfuPv_Btjkd7I.HksvsKCKoKpBeMm.u2sOHLtvXzvVD.Fb6.a.9sSFNvbJT8Z.IuKgyuNvUGuI9iT1eCtcpbGGCByrqJwA3hSO6n5OTlXg65CbgiJ45ykGGBzNUV7qTB9bjAtzO2HvmgYc..ihukbU7dAeSOjCVK1OSZMDHlbfvDjCz3dxjKM2.vVlzFFKNgIBPuaAwir3oEl7rAEP8LdaUfL',
        }

        headers = {
            'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
            'Accept-Language': 'zh-CN,zh;q=0.9',
            'Cache-Control': 'no-cache',
            'Connection': 'keep-alive',
            'Pragma': 'no-cache',
            'Referer': 'https://gaokao.chsi.com.cn/',
            'Sec-Fetch-Dest': 'document',
            'Sec-Fetch-Mode': 'navigate',
            'Sec-Fetch-Site': 'same-origin',
            'Sec-Fetch-User': '?1',
            'Upgrade-Insecure-Requests': '1',
            'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',
            'sec-ch-ua': '"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"',
            'sec-ch-ua-mobile': '?0',
            'sec-ch-ua-platform': '"Windows"',
            # 'Cookie': 'aliyungf_tc=7cb5c938e76ef3958fe5337e91bffa06c32dbd9e21b8e040d57906ebb5e4f263; goaYXsyEWlxdO=60fXqujhTZ3FtPDZYQEEGXMr1ajQhKXcCpfgoSFIb2RhPpNORLuVF00IFbOKXKDaWXpEJ3LuFp84tEIzoZfoPeNA; CHSICC01=!TTBncHRQZ/y6Y8InVPBkiJOoJxwY2oweUa5N8YGERJJSXQJwG6VxXGJpKfzi0vYW+fez0EfmMbYXYg==; 35067579362dd9cd78=ef12691a43d2f7a72b28673431c166e3; CHSICC_CLIENTFLAGCHSI=905233b5a742f1e8f5681ab828e68c6f; Hm_lvt_19141110b831c2c573190bb7a3b0ef3f=1762422431; HMACCOUNT=5CCD49CF5E631014; XSRF-CCKTOKEN=cf1480a30821220c692eb3600bd7bc98; CHSICC_CLIENTFLAGGAOKAO=7485b4f67adcaa05ecb6f9348135796b; _gid=GA1.3.2032091490.1762422457; _abfpc=b4347b7a90780d168a0d5b7318e200ebd745039a_2.0; cna=67572287e8ff0b175ba9a37415aa9d09; acw_tc=ac11000117624352297552521e0061f9114a5cbefa94ac86daf9144fd753f6; JSESSIONID=59652D5D44ABB694DE653B0C11D734D0; _gat_gtag_UA_100524_6=1; Hm_lpvt_19141110b831c2c573190bb7a3b0ef3f=1762435422; _ga_5FHT145N0D=GS2.1.s1762435237$o2$g1$t1762435422$j52$l0$h0; _ga=GA1.3.217458961.1762422457; goaYXsyEWlxdP=0XTUX2SeYi0vSHi1NqhkB684Y4la2oEDRsUPqOa9D50p1u.vR0BD7AZiUmphq1XjutOpZJ_P_.r_bmGqUuRZwAsfke7pZ1ZcgNN43NWpO5vmgbyHkiOscKMPfofcIB1zJyj91xk183jNPXPYMPe7higfIENlpuriV_aqHSqq_FiziwGT0rVLVVEBzfIFRDlc1YNNQyVfcHdDE7O2..SEfuPv_Btjkd7I.HksvsKCKoKpBeMm.u2sOHLtvXzvVD.Fb6.a.9sSFNvbJT8Z.IuKgyuNvUGuI9iT1eCtcpbGGCByrqJwA3hSO6n5OTlXg65CbgiJ45ykGGBzNUV7qTB9bjAtzO2HvmgYc..ihukbU7dAeSOjCVK1OSZMDHlbfvDjCz3dxjKM2.vVlzFFKNgIBPuaAwir3oEl7rAEP8LdaUfL',
        }

        yield scrapy.Request(url='https://gaokao.chsi.com.cn/sch/search--ss-on,option-qg,searchType-1,start-0.dhtml',callback=self.parse,headers=headers,cookies=cookies)

    def parse(self, response):
        print(response.status)

